accessible_role: Atk.Role.LEVEL_BAR,
};
super._init(Object.assign(defaultParams, params));
- this.connect('allocation-changed', (actor, box) => {
- this._barLevelWidth = box.get_width();
+ this.connect('notify::allocation', () => {
+ this._barLevelWidth = this.allocation.get_width();
});
this._customAccessible = St.GenericAccessible.new_for_actor(this);
vertical: true });
this.addChrome(this.panelBox, { affectsStruts: true,
trackFullscreen: true });
- this.panelBox.connect('allocation-changed',
+ this.panelBox.connect('notify::allocation',
this._panelBoxChanged.bind(this));
this.modalDialogGroup = new St.Widget({ name: 'modalDialogGroup',
Main.uiGroup.add_actor(this);
Main.uiGroup.set_child_below_sibling(this,
Main.layoutManager.panelBox);
- Main.layoutManager.panelBox.connect('allocation-changed',
+ Main.layoutManager.panelBox.connect('notify::allocation',
this._queueResize.bind(this));
- Main.layoutManager.keyboardBox.connect('allocation-changed',
+ Main.layoutManager.keyboardBox.connect('notify::allocation',
this._queueResize.bind(this));
this._objInspector = new ObjInspector(this);